<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改流程处理单元参数')" />
</head>
<body class="white-bg">
<div class="ibox-content">
	<div class="nav-tabs-custom">
		<ul class="nav nav-tabs">
			<li><a th:href="@{'/project/projectInfo/edit/'+${projectId}}" aria-expanded="false">基本信息</a></li>
			<li><a th:href="@{'/project/projectFlow/edit/'+${projectId}}" aria-expanded="false">工艺处理流程</a></li>
			<li class="active"><a th:href="@{'/project/projectFlowParam/edit/'+${projectId}}" aria-expanded="true">工艺处理流程参数</a></li>
			<li><a th:href="@{'/project/projectTech/edit/'+${projectId}}" aria-expanded="false">工艺运行情况</a></li>
			<li><a th:href="@{'/project/projectEqp/edit/'+${projectId}}" aria-expanded="false">设备运行情况</a></li>
			<li><a th:href="@{'/project/projectWater/edit/'+${projectId}}" aria-expanded="false">水质指标情况</a></li>
			<li><a th:href="@{'/project/projectMicro/edit/'+${projectId}}" aria-expanded="false">菌剂使用情况</a></li>
			<li><a th:href="@{'/project/projectPharm/edit/'+${projectId}}" aria-expanded="false">药剂使用情况</a></li>
		</ul>
        <form class="form-horizontal m" id="form-projectInfo-edit" th:object="${projectFlowParam}">
        <input id="projectId" name="projectId" th:field="*{projectId}"  type="hidden">
        </form>
		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table" data-mobile-responsive="true"></table>
		</div>
	</div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
	//var editFlag = [[${@permission.hasPermi('project:projectInfo:edit')}]];
	//var removeFlag = [[${@permission.hasPermi('project:projectInfo:remove')}]];
	//var sewageDatas = [[${@dict.getType('sewage_type')}]];
	//var progressDatas = [[${@dict.getType('project_progress')}]];
	var prefix = ctx + "project/projectFlowParam";
    //alert(${projectId});
    //alert($('#projectId').val());
	$(function () {
		var options = {
			url: prefix + "/list",
			modalName: "项目信息",
			columns: [{
				checkbox: true
			},
				{
					field: 'flowId',
					title: '流程处理单元参数ID',
					visible: false
				},
				{
					field: 'flowName',
					title: '流程处理单元名称'
				},
				{
					field: 'flowCodcr',
					title: 'CODcr(mg/L)'
				},
				{
					field: 'flowNh4N',
					title: 'NH4-N(mg/L)'
				},
				{
					field: 'flowS',
					title: 'S'
				},
				{
					field: 'flowTp',
					title: 'TP(°C)'
				},
				{
					field: 'flowPh',
					title: 'pH'
				},
				{
					field: 'flowVol',
					title: '容量(L)'
				},
				{
					title: '操作',
					align: 'center',
					formatter: function (value, row, index) {
						var actions = [];
						//actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.flowId + '\' + \'' + row.projectId + '\')">编辑</a> ');
                        actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="toEdit(\'' + row.flowId + '\',\'' + row.projectId + '\')">编辑</a> ');
                        return actions.join('');
					}
				}]
		};
		$.table.init(options);
	});

    function toEdit(flowId, projectId) {
        var url = prefix + '/edit/' + flowId + '/' + projectId;
        $.modal.open("编辑", url);
    }
</script>
</body>
</html>
